<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $this->load->view('include/html_head')?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('include/header')?>
	<?php $this->load->view('include/menu')?>
	<div id="page">
		<div id="content">
		<?php $this->load->view('include/sub_navi')?>
			<div class="post">
				<p class="meta">东大社团 - Societies of NEU</p>
				<div class="entry">
				 	<?php foreach ($this->common_data->_get_society_category_name_by_cid() as $k => $v): ?>
				 		<?php if ($k != 0): ?>
				 			<h2 class='category_list'><a href='<?php echo SOCIETY_CATEGORY_INTRO_PATH . $k ?>' title='<?php echo $v?>类社团简介' ><?php echo $v?></a></h2>
					 		<?php $condition['category'] = $k;
					 		$condition['sort_view_count'] = DESC;
					 		$society_data = $this->society_model->search_by_condition($condition); ?>
					 		<ul id='society_list'>
					 		<?php foreach($society_data as $v1): ?>
					 			<li><a href='<?php echo SOCIETY_HOME_PATH . $v1['society_id'] ?>' title='<?php echo $v1['s_name'] ?>主页'><?php echo ellipsize($v1['s_name'], 10, .5)?></a><span>(<?php echo $v1['view_count']?>)</span></li>
					 		<?php endforeach;?>
					 		</ul>
				 		<?php endif;?>
				 	<?php endforeach;?>
				</div>
			</div>
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<?php $this->load->view('include/side_bar')?>
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>
<?php $this->load->view('include/footer_content')?>
<?php $this->load->view('include/footer')?>
</body>
</html>
